const p = Promise.race([
    Promise.reject(2),
    Promise.resolve(3),
    Promise.resolve(1)
  
  
    // Promise.resolve(1)


])
setTimeout(() => {
  console.log(p)
  debugger
}, 1000);

const p2 = new Promise((resolve,reject)=>{

})
function pro (f){
  this.state = 'pedding'
  function a(v) {
    if( this.state != 'fulfilled'){
      this.state = 'fulfilled'
    return v
    } 
}
  
  function b(v) {
    if( this.state != 'fulfilled'){
      this.state = 'fulfilled'
    return v
    } 
}
 f(a,b)
  
}